package com.droowa.domain;

import java.io.Serializable;

public class ProductSet implements Serializable{

	private String id;
	private String cpu;
	private String mainBoard;
	private String ram;
	private String graphicCard;
	private String hdd;
	private String dvd;
	private String power;
	private String caseBox;
	private String keyBoard;
	private String mouse;
	private String productId;
	private String completePC;
	public ProductSet() {}
	public ProductSet(String id, String cpu, String mainBoard, String ram,
			String graphicCard, String hdd, String dvd, String power,
			String caseBox, String keyBoard, String mouse, String productId,
			String completePC) {
		this.id = id;
		this.cpu = cpu;
		this.mainBoard = mainBoard;
		this.ram = ram;
		this.graphicCard = graphicCard;
		this.hdd = hdd;
		this.dvd = dvd;
		this.power = power;
		this.caseBox = caseBox;
		this.keyBoard = keyBoard;
		this.mouse = mouse;
		this.productId = productId;
		this.completePC = completePC;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCpu() {
		return cpu;
	}
	public void setCpu(String cpu) {
		this.cpu = cpu;
	}
	public String getMainBoard() {
		return mainBoard;
	}
	public void setMainBoard(String mainBoard) {
		this.mainBoard = mainBoard;
	}
	public String getRam() {
		return ram;
	}
	public void setRam(String ram) {
		this.ram = ram;
	}
	public String getGraphicCard() {
		return graphicCard;
	}
	public void setGraphicCard(String graphicCard) {
		this.graphicCard = graphicCard;
	}
	public String getHdd() {
		return hdd;
	}
	public void setHdd(String hdd) {
		this.hdd = hdd;
	}
	public String getDvd() {
		return dvd;
	}
	public void setDvd(String dvd) {
		this.dvd = dvd;
	}
	public String getPower() {
		return power;
	}
	public void setPower(String power) {
		this.power = power;
	}
	public String getCaseBox() {
		return caseBox;
	}
	public void setCaseBox(String caseBox) {
		this.caseBox = caseBox;
	}
	public String getKeyBoard() {
		return keyBoard;
	}
	public void setKeyBoard(String keyBoard) {
		this.keyBoard = keyBoard;
	}
	public String getMouse() {
		return mouse;
	}
	public void setMouse(String mouse) {
		this.mouse = mouse;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public String getCompletePC() {
		return completePC;
	}
	public void setCompletePC(String completePC) {
		this.completePC = completePC;
	}
	@Override
	public String toString() {
		return "ProductSet [id=" + id + ", cpu=" + cpu + ", mainBoard="
				+ mainBoard + ", ram=" + ram + ", graphicCard=" + graphicCard
				+ ", hdd=" + hdd + ", dvd=" + dvd + ", power=" + power
				+ ", caseBox=" + caseBox + ", keyBoard=" + keyBoard
				+ ", mouse=" + mouse + ", productId=" + productId
				+ ", completePC=" + completePC + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((caseBox == null) ? 0 : caseBox.hashCode());
		result = prime * result
				+ ((completePC == null) ? 0 : completePC.hashCode());
		result = prime * result + ((cpu == null) ? 0 : cpu.hashCode());
		result = prime * result + ((dvd == null) ? 0 : dvd.hashCode());
		result = prime * result
				+ ((graphicCard == null) ? 0 : graphicCard.hashCode());
		result = prime * result + ((hdd == null) ? 0 : hdd.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((keyBoard == null) ? 0 : keyBoard.hashCode());
		result = prime * result
				+ ((mainBoard == null) ? 0 : mainBoard.hashCode());
		result = prime * result + ((mouse == null) ? 0 : mouse.hashCode());
		result = prime * result + ((power == null) ? 0 : power.hashCode());
		result = prime * result
				+ ((productId == null) ? 0 : productId.hashCode());
		result = prime * result + ((ram == null) ? 0 : ram.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductSet other = (ProductSet) obj;
		if (caseBox == null) {
			if (other.caseBox != null)
				return false;
		} else if (!caseBox.equals(other.caseBox))
			return false;
		if (completePC == null) {
			if (other.completePC != null)
				return false;
		} else if (!completePC.equals(other.completePC))
			return false;
		if (cpu == null) {
			if (other.cpu != null)
				return false;
		} else if (!cpu.equals(other.cpu))
			return false;
		if (dvd == null) {
			if (other.dvd != null)
				return false;
		} else if (!dvd.equals(other.dvd))
			return false;
		if (graphicCard == null) {
			if (other.graphicCard != null)
				return false;
		} else if (!graphicCard.equals(other.graphicCard))
			return false;
		if (hdd == null) {
			if (other.hdd != null)
				return false;
		} else if (!hdd.equals(other.hdd))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (keyBoard == null) {
			if (other.keyBoard != null)
				return false;
		} else if (!keyBoard.equals(other.keyBoard))
			return false;
		if (mainBoard == null) {
			if (other.mainBoard != null)
				return false;
		} else if (!mainBoard.equals(other.mainBoard))
			return false;
		if (mouse == null) {
			if (other.mouse != null)
				return false;
		} else if (!mouse.equals(other.mouse))
			return false;
		if (power == null) {
			if (other.power != null)
				return false;
		} else if (!power.equals(other.power))
			return false;
		if (productId == null) {
			if (other.productId != null)
				return false;
		} else if (!productId.equals(other.productId))
			return false;
		if (ram == null) {
			if (other.ram != null)
				return false;
		} else if (!ram.equals(other.ram))
			return false;
		return true;
	}
}
